import searchAxios from '../utils/request.js'

// 获取搜索结果
export function getSearchResult (params) {
  return searchAxios({
    url: '/v1_0/search',
    params: params
  })
}
// 获取联想
export function getLeve (params) {
  return searchAxios({
    url: '/v1_0/suggestion',
    params: params
  })
}
// 获取用户搜索历史
export function getUser () {
  return searchAxios({
    url: '/v1_0/search/histories'
  })
}
